#include "stdlib.h"

void func() {
    int *p = malloc(sizeof(int));
    *p = 1;
    p = malloc(sizeof(int));
    *p = 2;
    free(p);
}
